﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Default.Master" AutoEventWireup="true"
    CodeBehind="MessageShow.aspx.cs" Inherits="AUV5.Web.Pages.MessageShow" %>

<%@ Import Namespace="AUV5.Model" %>
<%@ Import Namespace="AUV5.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="fl main_left">
        <p class="usertitle grey">
            我的全部消息 <span class="dialogue">我 和
                <asp:Label ID="userName" Text="" runat="server" />
                的对话中... </span>
        </p>
        <div id="showDialogue" class="massage">
            <div class="massage_left">
                <ul>
                    <li><a href="MessageBox.aspx">全部消息</a></li>
                    <li><a href="MessageBox.aspx?type=1">我发起的对话</a> </li>
                    <li><a href="MessageBox.aspx?type=2">别人发起的对话</a></li>
                    <li><a href="BulletinList.aspx">系统公告
                        <asp:Label ID="lbBulletinCount" Text="" CssClass="newscount" runat="server" Visible="false" />
                    </a></li>
                </ul>
            </div>
            <div class="massage_right">
                <div class="massageshow">
                    <%--<p class="magservice">
                        <span class="blue">哎呦喂：</span><span class="magservicetxt">我能 告诉你一个生活小秘诀 只需5元！</span>
                        <span class="magservrcetime">10天前</span> <span class="magservrcedel"><a href="">
                            <img src="/!images/btndel_dialogueoff.jpg" id="Image11" onmouseover="MM_swapImage('Image11','','/!images/btndel_dialogueon.jpg',11)"
                                onmouseout="MM_swapImgRestore()" alt="删除" /></a></span>
                    </p>--%>
                    <div class="dialoguelist">
                        <%=GetMessageList()%>
                    </div>
                    <asp:Panel ID="panelSendMessage" runat="server">
                        <div class="dialoguelistinfo">
                            <p class="fl dialogueavatar">
                                <img src="<%=UserInfoBLL.Instance.GetDetail(base.VerifiedUserID).PhotoPath %>" /></p>
                            <p class="fl text_right dialogueicon">
                                <img src="/!images/icon_grey.jpg" /></p>
                            <p class="fl dialoguetxt massageinfogreybg  mar_left">
                                <span class="replytxt">回复</span>
                                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" CssClass="replytextarea" />
                                <span class="fr btnreply">
                                    <asp:Label ID="lbMessage" class="bluetxt" Text="" runat="server" />
                                    <asp:ImageButton ImageUrl="/!images/btn_sentoff.jpg" ID="ibtnSendMessage" ClientIDMode="Static"
                                        runat="server" OnClick="btnSendMessage_Click" onmouseover="MM_swapImage('ibtnSendMessage','','/!images/btn_senton.jpg',12)"
                                        onmouseout="MM_swapImgRestore()" alt="发送" />
                                </span>
                            </p>
                        </div>
                    </asp:Panel>
                    <asp:Label ID="lbInBlackList" Text="" runat="server" />
                </div>
            </div>
            <p class="clear">
            </p>
            <ul>
            </ul>
        </div>
        <%--
        <script type="text/javascript">
            LoadJS("/!js/uploadify-v2.1.4/swfobject.js");
            LoadJS("/!js/uploadify-v2.1.4/jquery.uploadify.v2.1.4.min.js");
            LoadCSS("/!js/uploadify-v2.1.4/uploadify.css");

            var queuesize = 1;
            $(document).ready(function () {
                var now = new Date($("[id$=hfadddate]").val());
                $("#uploadify").uploadify(
        {
            'uploader': '/!js/uploadify-v2.1.4/uploadify.swf',
            'script': '/Handler/UploadHandler.ashx',
            'cancelImg': '/!js/uploadify-v2.1.4/cancel.png',
            'folder': "/UploadFile/Image/" + now.getFullYear() + "/" + (now.getMonth() + 1) + "/" + now.getDate() + "/",
            'queueID': 'fileQueue',
            'auto': false,
            'multi': false,
            'fileExt': '*.jpg;*.png',
            'fileDesc': '请选择jpg , png文件...',
            'queueSizeLimit': queuesize,
            'scriptData': { 'ASPSESSID': $('hfAspSessID').val(), 'AUTHID': $('hfAuth').val() },
            'onComplete': function (event, queueID, fileObj, response, data) {
            },
            'onError': function (a, b, c, d) {
                if (d.status == 404) alert('Could not find upload script. Use a path relative to: ' + '<?= getcwd() ?>');
                else if (d.type === "HTTP") alert('error ' + d.type + ": " + d.info);
                else if (d.type === "File Size") alert(c.name + ' ' + d.type + ' Limit: ' + Math.round(d.sizeLimit / 1024) + 'KB');
                else
                    alert('error ' + d.type + ": " + d.info);
            }
        }
    );
                $('#upload').click(function (event) {
                    $('#uploadify').uploadifyUpload();
                    return false;
                });
                $('#clearQueue').click(function () {
                    $('#uploadify').uploadifyClearQueue();
                    return false;
                });
            });
        </script>
        <div>
            添加附件:
            <div id="fileQueue">
            </div>
            <input type="file" name="uploadify" id="uploadify" />
            <div>
                <a id='upload' href="#">上传</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a id="clearQueue" onclick="$('#uploadify').uploadifyClearQueue();"
                    href="#">取消上传</a>
            </div>
            <div id="showQueue">
                <asp:HiddenField ID="hfpath" runat="server" />
            </div>
        </div>
        --%>
    </div>
</asp:Content>
